package test;

import entity.Student;

import java.lang.reflect.Field;

/**
 * @author zhu
 * @date 2024-03-25
 */
public class MainTest02 {
    public static void main(String[] args) {
        Class<Student> clazz = Student.class;

        Field[] fields = clazz.getDeclaredFields();

        for(Field field : fields){
            System.out.println("属性名称：" + field.getName());
        }
    }
}
